<table width="600" align="center" id="tableadmin">
	<thead>
		<h2 style="color: olive">View videos</h2>
	</thead>
    <?php if($query->num_rows() > 0)
{?>
   <tr>
		<th></th>
		<th>
		Name
		</th>
		<th>
		Number Of Views
		</th>
		<th>
		Video
		</th>
		<th>
		Delete
		</th>
		<th>
		Edit
		</th>
	</tr>
   
<?php $i=1;//echo form_open();

echo form_open(base_url().'admin/flashvideo/deletevideo/');?>
<?foreach ($query->result() as $item):
?>
<tr>
		<td><input type="checkbox" id='c<?=$i?>' name="removeid1[]" value=<?=$item->id?>></td>
		<td><?=$item->name?>
    </td>
		<td><?=$item->no_of_views?>
    </td>
		<td><a href="<?=base_url();?>admin/flashvideo/index/<?=$item->id?>/<?=$catid?>"> <img
			src="<?=base_url()?>assets/videos/image_preview/image<?=$item->id?>_thumb.jpg"
			alt="img"></td>
		<td><a
			href="<?=base_url()?>admin/flashvideo/deletevideo/<?=$item->id?>/<?=$catid?>"
			onclick='return confirm("are you sure want to delete");'><img
			src="<?=base_url();?>assets/imgs/delete.png" border='0' /></a></td>
		<td><a
			href="<?=base_url()?>admin/flashvideo/editvideo/<?=$item->id?>/<?=$catid?>"><img
			src="<?=base_url();?>assets/imgs/edit.png" border='0' /></a></td>
	</tr>

<?php $i++;endforeach ;?>
<tr>
		
		<td align="center" colspan='6'><a onclick="fun();" href="javascript:void(0)">checkall</a>&nbsp; <a
			onclick="fun1();" href="javascript:void(0)">uncheckall</a></td>
		
	</tr>
	<tr>
	
	
	<tr>
	</tr>
	<tr>
		
		
		<td align="center" colspan=6'>
<? echo form_submit('remove','remove selected');?>  
</td>
	
	</tr>
	<tr>
		<td colspan=4>
	  <?//php echo $this->paginationnew->paginate();?>
	  </td>
	</tr>


	</form>
<? }else { ?>
	
<h2>No Videos in this categeory</h2>	

<a href="<?=base_url();?>/admin/flashvideo/addvideo" style="color:purple">Click to Add Videos</a>
<? }?>
</table>

